type voidFucntion = () => void;

const fn: voidFucntion = () => true;

const src = [1, 2, 3];
const dst = [0];

src.forEach(el => dst.push(el));

function f2(): void {
    // @ts-expect-error
    return true;
}

const f3 = function(): void {
    // @ts-expect-error
    return true;
}